#pragma once

//
//  类适配器
//

class CUsb
{
public:
    virtual void ConnectToDevice()
    {
        std::cout << "connected to USB" << std::endl;
    }
};

class CTypeC
{
public:
    virtual void ConnectToDevice()
    {
        std::cout << "connected to Type-C" << std::endl;
    }
};

class CAdaptor : public CUsb, public CTypeC
{
public:
    virtual void ConnectToDevice()
    {
        CTypeC::ConnectToDevice();
    }
};
